package com.dx.common.table.ppt;

/**
 * Spc_ret_sum_rptId entity. @author MyEclipse Persistence Tools
 */

public class Spc_ret_sum_rptId implements java.io.Serializable {

	// Fields

	private String sum_seq_id_fk;
	private String grp_no_fk;
	private String chart_no_fk;
	private String data_group_fk;
	private String mdl_id_fk;
	private String tool_id_fk;
	private String proc_id;

	// Constructors

	/** default constructor */
	public Spc_ret_sum_rptId() {
	}

	/** full constructor */
	public Spc_ret_sum_rptId(String sum_seq_id_fk, String grp_no_fk,
			String chart_no_fk, String data_group_fk, String mdl_id_fk,
			String tool_id_fk, String proc_id) {
		this.sum_seq_id_fk = sum_seq_id_fk;
		this.grp_no_fk = grp_no_fk;
		this.chart_no_fk = chart_no_fk;
		this.data_group_fk = data_group_fk;
		this.mdl_id_fk = mdl_id_fk;
		this.tool_id_fk = tool_id_fk;
		this.proc_id = proc_id;
	}

	// Property accessors

	public String getSum_seq_id_fk() {
		return this.sum_seq_id_fk;
	}

	public void setSum_seq_id_fk(String sum_seq_id_fk) {
		this.sum_seq_id_fk = sum_seq_id_fk;
	}

	public String getGrp_no_fk() {
		return this.grp_no_fk;
	}

	public void setGrp_no_fk(String grp_no_fk) {
		this.grp_no_fk = grp_no_fk;
	}

	public String getChart_no_fk() {
		return this.chart_no_fk;
	}

	public void setChart_no_fk(String chart_no_fk) {
		this.chart_no_fk = chart_no_fk;
	}

	public String getData_group_fk() {
		return this.data_group_fk;
	}

	public void setData_group_fk(String data_group_fk) {
		this.data_group_fk = data_group_fk;
	}

	public String getMdl_id_fk() {
		return this.mdl_id_fk;
	}

	public void setMdl_id_fk(String mdl_id_fk) {
		this.mdl_id_fk = mdl_id_fk;
	}

	public String getTool_id_fk() {
		return this.tool_id_fk;
	}

	public void setTool_id_fk(String tool_id_fk) {
		this.tool_id_fk = tool_id_fk;
	}

	public String getProc_id() {
		return this.proc_id;
	}

	public void setProc_id(String proc_id) {
		this.proc_id = proc_id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Spc_ret_sum_rptId))
			return false;
		Spc_ret_sum_rptId castOther = (Spc_ret_sum_rptId) other;

		return ((this.getSum_seq_id_fk() == castOther.getSum_seq_id_fk()) || (this
				.getSum_seq_id_fk() != null
				&& castOther.getSum_seq_id_fk() != null && this
				.getSum_seq_id_fk().equals(castOther.getSum_seq_id_fk())))
				&& ((this.getGrp_no_fk() == castOther.getGrp_no_fk()) || (this
						.getGrp_no_fk() != null
						&& castOther.getGrp_no_fk() != null && this
						.getGrp_no_fk().equals(castOther.getGrp_no_fk())))
				&& ((this.getChart_no_fk() == castOther.getChart_no_fk()) || (this
						.getChart_no_fk() != null
						&& castOther.getChart_no_fk() != null && this
						.getChart_no_fk().equals(castOther.getChart_no_fk())))
				&& ((this.getData_group_fk() == castOther.getData_group_fk()) || (this
						.getData_group_fk() != null
						&& castOther.getData_group_fk() != null && this
						.getData_group_fk()
						.equals(castOther.getData_group_fk())))
				&& ((this.getMdl_id_fk() == castOther.getMdl_id_fk()) || (this
						.getMdl_id_fk() != null
						&& castOther.getMdl_id_fk() != null && this
						.getMdl_id_fk().equals(castOther.getMdl_id_fk())))
				&& ((this.getTool_id_fk() == castOther.getTool_id_fk()) || (this
						.getTool_id_fk() != null
						&& castOther.getTool_id_fk() != null && this
						.getTool_id_fk().equals(castOther.getTool_id_fk())))
				&& ((this.getProc_id() == castOther.getProc_id()) || (this
						.getProc_id() != null && castOther.getProc_id() != null && this
						.getProc_id().equals(castOther.getProc_id())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getSum_seq_id_fk() == null ? 0 : this.getSum_seq_id_fk()
						.hashCode());
		result = 37 * result
				+ (getGrp_no_fk() == null ? 0 : this.getGrp_no_fk().hashCode());
		result = 37
				* result
				+ (getChart_no_fk() == null ? 0 : this.getChart_no_fk()
						.hashCode());
		result = 37
				* result
				+ (getData_group_fk() == null ? 0 : this.getData_group_fk()
						.hashCode());
		result = 37 * result
				+ (getMdl_id_fk() == null ? 0 : this.getMdl_id_fk().hashCode());
		result = 37
				* result
				+ (getTool_id_fk() == null ? 0 : this.getTool_id_fk()
						.hashCode());
		result = 37 * result
				+ (getProc_id() == null ? 0 : this.getProc_id().hashCode());
		return result;
	}

}